﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<One2Team.EasyScrum.UI.Web.Models.user_story>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Create</h2>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>

    <fieldset>
        <legend>user_story</legend>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.nom) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.nom) %>
            <%: Html.ValidationMessageFor(model => model.nom) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.description) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.description) %>
            <%: Html.ValidationMessageFor(model => model.description) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.id_product_backlog, "product_backlog") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("id_product_backlog", String.Empty) %>
            <%: Html.ValidationMessageFor(model => model.id_product_backlog) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.id_sprint_backlog, "sprint_backlog") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("id_sprint_backlog", String.Empty) %>
            <%: Html.ValidationMessageFor(model => model.id_sprint_backlog) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.id_user_story_status, "user_story_status") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("id_user_story_status", String.Empty) %>
            <%: Html.ValidationMessageFor(model => model.id_user_story_status) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.id_priority, "priority") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("id_priority", String.Empty) %>
            <%: Html.ValidationMessageFor(model => model.id_priority) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.id_team, "team") %>
        </div>
        <div class="editor-field">
            <%: Html.DropDownList("id_team", String.Empty) %>
            <%: Html.ValidationMessageFor(model => model.id_team) %>
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
<% } %>

<div>
    <%: Html.ActionLink("Back to List", "Index") %>
</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ScriptsSection" runat="server">
    <%: Scripts.Render("~/bundles/jqueryval") %>
</asp:Content>
